<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>易谷网络工单管理系统</title>

    <!-- favicon.ico -->
    <link href="assets/favicon.ico" rel="shortcut icon" type="image/x-icon" />

    <link rel="stylesheet" href="<%= BASE_URL %>libs/element-ui/2.4.7/theme/index.css">
    <!-- <link rel="stylesheet" href="<%= BASE_URL %>assets/animate/3.5.2/animate.css"> -->
    <!-- <link rel="stylesheet" href="<%= BASE_URL %>assets/iconfont/1.0.0/index.css"> -->
    <link rel="stylesheet" href="<%= BASE_URL %>libs/avue/index.css">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">

    <!-- chat会话框相关css -->
    <link href="<%= BASE_URL %>static/pro/css/media.css" rel="stylesheet" type="text/css" />
    <link id="interact_theme" href="<%= BASE_URL %>static/pro/css/interact_theme1.css" rel="stylesheet" type="text/css" />
    <link href="<%= BASE_URL %>static/pro/css/index.css" rel="stylesheet" type="text/css" />
    <link href="<%= BASE_URL %>static/pro/css/theme.css" rel="stylesheet" type="text/css" />

</head>

<body>
    <script src="static/config.js"></script>
    <div id="app"></div>
    <!-- built files will be auto injected -->

    <script src="<%= BASE_URL %>libs/util/aes.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/util/utils.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/vue/2.5.2/vue.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/vuex/2.4.1/vuex.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/vue-router/3.0.1/vue-router.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/axios/1.0.0/axios.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/element-ui/2.4.7/element-ui.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/avue/avue.min.js" charset="utf-8"></script>

    <script src="<%= BASE_URL %>libs/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="<%= BASE_URL %>libs/jquery/jquery-ui.min.js" type="text/javascript"></script>
    <script src="<%= BASE_URL %>libs/jquery-photo-gallery/jquery.photo.gallery.js"></script>
    <!-- chat会话框相关js -->
    <script src="<%= BASE_URL %>static/pro/js/model.js" type="text/javascript"></script>
    <script src="<%= BASE_URL %>static/pro/js/chat.uikit-1.0.0.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>static/pro/js/constants.js"></script>
    <script src="<%= BASE_URL %>static/pro/js/parameter.js"></script>
    <script src="<%= BASE_URL %>static/pro/js/i18n.js"></script>
    <script src="<%= BASE_URL %>static/pro/js/third.api.js"></script>
    <script src="<%= BASE_URL %>static/pro/js/options.js"></script>
    <script src="<%= BASE_URL %>static/pro/js/settings.js"></script>

    <script>
        // 初始化chat
        initChatUiKit()
        let src = "searchOption"
        if (window.CONFIG.itemType == "1") {
            src = "product"
        } else if (window.CONFIG.itemType == "2") {
            src = "jincheng"
        } else if (window.CONFIG.itemType == "3") {
            src = "sunong"
        } else if (window.CONFIG.itemType == "4") {
            src = "sanxiang"
        } else if (window.CONFIG.itemType == "5") {
            src = "zheneng"
        }
        let script = document.createElement("script");
        script.setAttribute("type", "text/javascript");
        script.src = "<%= BASE_URL %>static/options/" + src + ".js";
        document.body.appendChild(script);
    </script>
    <div id="app"></div>
    <!-- built files will be auto injected -->

    <script src="<%= BASE_URL %>libs/util/aes.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/util/utils.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/vue/2.5.2/vue.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/vuex/2.4.1/vuex.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/vue-router/3.0.1/vue-router.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/axios/1.0.0/axios.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/element-ui/2.4.7/element-ui.min.js" charset="utf-8"></script>
    <script src="<%= BASE_URL %>libs/avue/avue.min.js" charset="utf-8"></script>
    <script>
        // 设置主题色
        var thememColor = 'theme2'
        window.document.documentElement.setAttribute('data-theme', thememColor)
        axios.get(window.CONFIG.workOrderRestIp + '/EripDataSyn/getMajorColor').then((res) => {
            if (res.data.retCode == 200) {
                thememColor = (res.data.data.length > 0 && res.data.data[0].codeValue) ? res.data.data[0].codeValue : ''
                window.document.documentElement.setAttribute('data-theme', thememColor)
            }
        }).catch((error) => {
            console.log(error); //异常
        });
    </script>
</body>

</html>